<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>新闻添加页面</title>
  <link rel="stylesheet" href="../../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../../yl/style.css" />
  <link rel="stylesheet" href="../../../style/wangeditor.css">
  <link rel="stylesheet" href="../../../yl/mobile.css" />
  <link rel="stylesheet" href="../../../yl/easyui.css" />
  <link rel="stylesheet" href="../../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">{{action=='Add'?'添加'+Affairs_Type+'信息':action=='Modify'?'修改'+Affairs_Type+'信息':''}}</div>
      </div>
    </header>
    <div v-if="true" class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'three_affairs_disclosure', 'form': 'dataForm' ,'primary_key':'Affairs_SerialNumber' })">
      <div class="yl-main">
        <div class="table_titel">
          <div class="titel">{{Affairs_Type}}信息</div>
        </div>
        <el-form :model="dataForm" ref="form" :inline-message="true" style="width: 100%">
          <el-descriptions :column="1" size="large" border>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">{{Affairs_Type}}事项名称</div>
              </template>
              <el-form-item prop="Affairs_Name"
                :rules="[{ required: true, message: '请输入'+Affairs_Type+'事项名称', trigger: 'blur' }]">
                <el-input v-model="dataForm.Affairs_Name" class="borderless-input"
                  :placeholder="'请输入'+Affairs_Type+'事项名称'" />
              </el-form-item>
            </el-descriptions-item>
            <template v-if="dataForm.Affairs_Type=='2'">
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">项目名称</div>
                </template>
                <!-- :rules="[{ required: true, message: '请输入项目名称', trigger: 'blur' }]" -->
                <el-form-item prop="Project_Name"
                  >
                  <el-input v-model="dataForm.Project_Name" class="borderless-input"
                    placeholder="请输入项目名称" />
                </el-form-item>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">设定依据</div>
                </template>
                <!-- :rules="[{ required: true, message: '请输入设定依据', trigger: 'blur' }]" -->
                <el-form-item prop="Setting_Criteria"
                  >
                  <el-input v-model="dataForm.Setting_Criteria" class="borderless-input"
                    placeholder="请输入设定依据" />
                </el-form-item>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">许可时限</div>
                </template>
                <!-- :rules="[{ required: true, message: '请输入许可时限', trigger: 'blur' }]" -->
                <el-form-item prop="License_Deadline"
                  >
                  <el-input v-model="dataForm.License_Deadline" class="borderless-input"
                    placeholder="请输入许可时限" />
                </el-form-item>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">许可条件</div>
                </template>
                <!-- :rules="[{ required: true, message: '请输入许可条件', trigger: 'blur' }]" -->
                <el-form-item prop="Permissive_Condition"
                  >
                  <el-input  type="textarea" :autosize="{ minRows: 5}"   v-model="dataForm.Permissive_Condition" class="borderless-input"
                    placeholder="请输入许可条件" />
                </el-form-item>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">收费说明</div>
                </template>
                <!-- :rules="[{ required: true, message: '请输入收费说明', trigger: 'blur' }]" -->
                <el-form-item prop="Fee_Description"
                  >
                  <el-input  type="textarea" :autosize="{ minRows: 5}"   v-model="dataForm.Fee_Description" class="borderless-input"
                    placeholder="请输入收费说明" />
                </el-form-item>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">受理窗口</div>
                </template>
                <el-form-item prop="Acceptance_Window"
                  :rules="[{ required: true, message: '请输入受理窗口', trigger: 'blur' }]">
                  <yl-text-editor v-model="dataForm.Acceptance_Window" :placeholder="'请输入受理窗口'"></yl-text-editor>
                </el-form-item>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">联系方式</div>
                </template>
                <el-form-item prop="Contact"
                  :rules="[{ required: true, message: '请输入联系方式', trigger: 'blur' }]">
                  <el-input v-model="dataForm.Contact" class="borderless-input"
                    placeholder="请输入联系方式" />
                </el-form-item>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">办理流程</div>
                </template>
                <el-form-item prop="Procedure"
                  :rules="[{ required: true, message: '请输入办理流程', trigger: 'blur' }]">
                  <yl-text-editor v-model="dataForm.Procedure" placeholder="请输入办理流程"></yl-text-editor>
                </el-form-item>
              </el-descriptions-item>
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">依据流程</div>
                </template>
                <el-form-item prop="According_Procedure"
                  :rules="[{ required: true, message: '请输入依据流程', trigger: 'blur' }]">
                  <yl-text-editor v-model="dataForm.According_Procedure" placeholder="请输入依据流程"></yl-text-editor>
                </el-form-item>
              </el-descriptions-item>
            </template>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">{{Affairs_Type}}来源</div>
              </template>
              <el-form-item prop="Affairs_Source"
                :rules="[{ required: true, message: '请输入'+Affairs_Type+'来源', trigger: 'blur' }]">
                <el-input v-model="dataForm.Affairs_Source" class="borderless-input"
                  :placeholder="'请输入'+Affairs_Type+'来源'" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">发布时间</div>
              </template>
              <el-form-item prop="Publish_Datetime">
                <el-date-picker v-model="dataForm.Publish_Datetime" type="datetime" placeholder="请选择发布时间"
                  class="borderless-input" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" size="large" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">{{Affairs_Type}}内容</div>
              </template>
              <el-form-item prop="Affairs_Content"
                :rules="[{ required: true, message: '请输入'+Affairs_Type+'内容', trigger: 'blur' }]">
                <yl-text-editor v-model="dataForm.Affairs_Content"
                  :placeholder="'请输入'+Affairs_Type+'内容'"></yl-text-editor>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item v-if="dataForm.Affairs_Type == '0'">
              <template #label>
                <div class="cell-item">所属新闻</div>
              </template>
              <el-form-item prop="News_SerialNumber" :rules="[{ required: true, message: '请选择所属新闻', trigger: 'blur' }]">
                <yl-select v-model="dataForm.News_SerialNumber" clearable filterable placeholder="请选择所属新闻"
                  :options="news" :props="{value:'News_SerialNumber',label:'News_Title'}">
                  <el-table-column prop="News_SerialNumber" width="180" show-overflow-tooltip
                    label="新闻流水号"></el-table-column>
                  <el-table-column prop="News_Title" show-overflow-tooltip label="新闻标题"></el-table-column>
                </yl-select>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item v-if="dataForm.Affairs_Type == '0'">
              <template #label>
                <div class="cell-item">所属党组</div>
              </template>
              <el-form-item prop="Party_Organization_SerialNumber" :rules="[{ required: true, message: '请选择所属党组', trigger: 'change' }]">
                <el-cascader class="borderless-input" v-model="dataForm.Party_Organization_SerialNumber" filterable clearable
                  :props="{value:'Party_Organization_SerialNumber',label:'Party_Organization_Name',children:'children',emitPath:false,checkStrictly:true}" placeholder="请选择党组织"
                  :options="party" style="width: 100%"></el-cascader>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item v-if="dataForm.Affairs_Type == '2'||dataForm.Affairs_Type == '1'">
              <template #label>
                <div class="cell-item">所属村委会</div>
              </template>
              <el-form-item prop="VillageNumber">
                <yl-cascader class="borderless-input" v-model="dataForm.VillageNumber" filterable
                  :props="{value:'ProvinceNumber',label:'Province',children:'children'}" placeholder="请选择村行政区"
                  :options="city1" style="width: 100%"></yl-cascader>
              </el-form-item>
            </el-descriptions-item>
          </el-descriptions>
        </el-form>
        <div id="ChildTable">
          <div class="table_titel">
            <div class="titel">{{Affairs_Type}}附件</div>
          </div>
          <el-descriptions :column="3" size="large" border
            :data-options="JSON.stringify({ 'TableName': 'three_affairs_disclosure_attachment', 'form': 'childDataForm', 'ParentTableName': 'three_affairs_disclosure'})">
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">附件</div>
              </template>
              <yl-upload ref="ylUpload" drag @success="success" @remove="remove" :limit="99"
                :file="fileList"></yl-upload>
            </el-descriptions-item>
          </el-descriptions>
        </div>
      </div>
    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" plain @click="handleSubmit" :loading="loading">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../../utils/utils.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/compressor.js"></script>
<script src="../../../utils/wangeditor.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="./js/add.js"></script>

</html>